import request from "@/utils/request";

export function getIndex() {
  return request({
    url: "/system/getInfo/"
  });
}

export function getSystem(data) {
  return request({
    url: "/system/",
    params: data
  });
}

export function updateSystem(data) {
  return request({
    url: "/system/" + data.id + "/",
    data: data,
    method: "PATCH"
  });
}

export function upload(data) {
  return request({
    url: "/upload",
    data: data,
    method: "POST",
    headers: { "content-type": "multipart/form-data; " }
  });
}
